package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayPassageServiceApi;
import com.thb.pay.api.payment.vo.req.PayPassagePageReq;
import com.thb.pay.api.payment.vo.req.PayPassageReq;
import com.thb.pay.api.payment.vo.resp.PayPassageVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayPassageServiceApiFallbackFactory implements FallbackFactory<PayPassageServiceApi> {


    @Override
    public PayPassageServiceApi create(Throwable throwable) {
        return new PayPassageServiceApi() {
            @Override
            public PageResult<PayPassageVo> findPage(PayPassagePageReq pageReq) {
                return null;
            }

            @Override
            public void add(PayPassageReq payPassageReq) {

            }

            @Override
            public void update(PayPassageReq payPassageReq) {

            }

            @Override
            public PayPassageVo getById(Long id) {
                return null;
            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}